package com.springcloudserver.service;


import com.springcloudserver.common.AjaxResult;
import com.springcloudserver.feignfallback.FeignServiceException;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @description:
 * @author: chenzuolin
 * @time: 2021/3/20 21:20
 */
@FeignClient(value = "nacos-provider", fallbackFactory = FeignServiceException.class)
public interface UserInfoService {

    @GetMapping("/provider/findById/{id}")
    AjaxResult findById(@PathVariable("id") String id);

    @GetMapping("/provider/findAll")
    AjaxResult findAll();
}
